package com.warm.middle.schedule.quartz.dynamic;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

/**
 * @Date: 2019/12/3 17:05
 * @Author: LChuang
 * @Description: 任务实现类
 */
@Component
public class TestTask implements BaseJob {

    public int i = 0;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        i++;
        System.out.println("task: --->" + i);
    }
}
